{% load i18n %}
<a name="comment-form"></a>
<a name="comments"></a>
<div class="comment-form" id="comment-form">
    <div class="commentlabel">
        <h4> {% trans "Comment" %} </h4>
    </div>		
	<div>
    <form method=post action='/addBlogReaction?blogId={{blog.key.id}}' id="reactionForm">
        <div>
			<h2 class="comments-post">{% trans "About You" %}</h2>
			<input type="hidden" name="reply_to" id="reply_to" value="" />        	
        </div>
        <div>
            <input id="name_input" name='name_input' type=text size="60"
                   value="{% if user %}{{user.nickname}}{%else%}{{blogReaction.user}}{%endif%}" {% if user %}readonly{%endif%}>
            <label for="name_input"><b>{% trans "Name" %}</b> ({% trans "required" %})</label>
        </div>
        <div>
            <input id="mail" name="mail" type=text size="60" value="{% if user %}{{user.email}}{%else%}{%if blogReaction%}{{blogReaction.authorEmail}}{%endif%}{%endif%}"
            {% if user %}readonly{%endif%}>
            <label for="mail"><b>{% trans "Mail" %}</b> ({% trans "required" %})</label>
        </div>
        <div>
            <input id="website" name="website" type=text size="60" value="{%if blogReaction%}{{blogReaction.authorWebsite}}{%endif%}">
            <label for="website"><b>{% trans "Website" %}</b></label>
        </div>
        <div><h2 class="comments-post">{% trans "Comment" %}</h2>
		</div>
        <div id="blogpost">
            <textarea id="text_input" name="text_input" rows="12" cols="60">{%if blogReaction%}{{blogReaction.content}}{%endif%}</textarea>
        </div>
        <input name=submit_addreply type=submit value=submit>
    </form>
	</div>
</div>